int rkisp_register_stream_vdevs(struct rkisp_device *dev)
{
	struct rkisp_capture_device *cap_dev = &dev->cap_dev;
	int ret = 0;

	memset(cap_dev, 0, sizeof(*cap_dev));
	cap_dev->ispdev = dev;
	atomic_set(&cap_dev->refcnt, 0);

	if (dev->isp_ver <= ISP_V13)
		ret = rkisp_register_stream_v1x(dev);
	else if (dev->isp_ver == ISP_V20)
		ret = rkisp_register_stream_v20(dev);
	else if (dev->isp_ver == ISP_V21)
		ret = rkisp_register_stream_v21(dev);
	return ret;
}

